<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Created by content.php
 * Date: 01.12.13
 * User: Lesh
 */
?>
<div id="content">
	<?php foreach($images as $image):?>
		<div class="img">
			<div class="loader"></div>
			<?= HTML::anchor(
				$image->name_thumb(),
				HTML::image($image->name_crop(), array(
													'style' => 'display: none',
													'id' => 'image'
												 )),
				array('title' => $image->description_all(), 'rel' => 'group', )
			);?>
		</div>
	<?php endforeach;?>
	<div class="clear"></div>
	<div class="previous">
		<?php $page_p = $page - 1;?>
		<?php $route = $page_p == 1 ? array() : array('page' => $page_p);?>
		<?= Html::anchor(
			Route::url('site-index', $route),
			Html::image('/img/back.png', array('title' => __('Previous'))),
			array('id' => 'page', 'page' => $page_p, 'title' => __('Previous'))
		);?>
	</div>
	<div class="skip"></div>
	<div class="skip"></div>
	<div class="next">
		<?php $page_n = $page+1;?>
		<?= Html::anchor(
			Route::url('site-index', array('page' => $page_n)),
			Html::image('/img/next.png', array('title' => __('Next'))),
			array('id' => 'page', 'page' => $page_n, 'title' => __('Next'))
		);?>
	</div>
</div>